<?php

namespace App\Models\OldSystem;

class User extends Base
{
    protected $table = 'user';

    protected $primaryKey = 'user_id';

    /**
     * 提现申请记录
     */
    public function userWithdrawal()
    {
        return $this->hasMany(UserWithdrawal::class, 'user_id', 'user_id');
    }

    /**
     * 合伙人身份
     */
    public function partner()
    {
        return $this->hasOne(UserCopartner::class, 'user_id', 'user_id');
    }
}
